{% extends "layout.html" %}


{% block content %}
<div class="container">
    <form action="{{url_for('.register')}}" class="form-horizontal" method="post" id="login-form">

            {% if error %}
            <div class="form-group">
                <label class="control-label has-error red">{{error}}</label>
            </div>

            {% endif %}

            <div class="form-group">
                <label for="email" class="col-xs-3 control-label {% if error %} has-error {% endif %}" >邮箱地址:</label>
                <div class="col-xs-5">
                    <input type="text" id="email" name="email" class="form-control" placeholder="邮箱地址">
                </div>
            </div>

            <div class="form-group">
                <label for="password" class="col-xs-3 control-label {% if error %} has-error {% endif %}">您的密码:</label>
                <div class="col-xs-5">
                    <input type="password" id="password" name="password" class="form-control" placeholder="密码">
                </div>
            </div>

            <div class="form-group">
                <div class="col-xs-9 col-xs-offset-3">
                <button type="submit" class="btn btn-primary">注册</button>
                <a href="{{url_for('.login')}}" class="btn btn-success">登录</a>
                <a href="{{url_for('.forgot')}}">忘记密码</a>
                </div>
            </div>

        </form>
</div>
{% endblock %}



